# gettime
# 获取时间
execute at @s as @s run tag @s remove noup
execute at @s as @s run tag @s remove notime
execute at @s as @s run tag @s remove cn_add
execute at @s as @s run tag @s remove canadd
execute at @s[scores={time_seconds=!0}] as @s run title @s times 10 70 20
# 移除不能获取时间的标签
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_coal
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_iron
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_copper
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_gold
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_diamond
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_netherite
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_raw_copper
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_raw_iron
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_raw_gold
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_iron_nugget
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_gold_nugget
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run tag @s remove cn_emerald
# 获得 hero 标签
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg}] as @s run scoreboard players operation @s ishero = ishero ishero
# 英雄
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=!hero] as @s run tag @s add hero_pro
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=!hero] as @s run tag @s add hero
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run scoreboard players operation @s time_seconds *= double ishero
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f一种奇怪的感觉涌上您的心头。"}]}
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run tag @s add getherotitle
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run tag @s add noup
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run tag @s add notime
execute at @s[tag=getherotitle,hasitem={item=dragon_egg},scores={ishero=0},tag=hero] as @s run scoreboard players set ishero ishero 1
# 追随者
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=1},tag=!hero] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=1},tag=!hero] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f这个世界需要先驱，而不是抄袭者。"}]}
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=1},tag=!hero] as @s run tag @s add notime
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=1},tag=!hero] as @s run tag @s add noup
execute at @s[tag=!getherotitle,hasitem={item=dragon_egg},scores={ishero=1},tag=!hero] as @s run tag @s add getherotitle
# 设置玩家的倍率
# 生存时间设置
execute at @s[scores={survival_all=1..600}] as @s run scoreboard players set @s magnification 2
execute at @s[scores={survival_all=600..}] as @s run scoreboard players set @s magnification 1
# 累计加时次数加成
execute at @s[scores={timeaddcount=0}] as @s run scoreboard players add @s magnification 4
execute at @s[scores={timeaddcount=1..4}] as @s run scoreboard players add @s magnification 3
execute at @s[scores={timeaddcount=5..9}] as @s run scoreboard players add @s magnification 2
# 最后 5 min 超过 10 次就不能白嫖了（）
execute at @s[scores={last5mincon=11..},tag=last5min,tag=!haslast5min] as @s run tag @s remove last5min
# 最后 5 min 保护一下（
execute at @s[scores={time_seconds=1..600},tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s magnification 2
# 最多不超过 10 倍，超过 10 倍安装 10 倍计算
execute at @s[scores={magnification=11..}] as @s run scoreboard players set @s magnification 10
# 反向倍率设定
execute at @s as @s run scoreboard players set @s remagnification 1
# 作弊者
execute at @s[tag=cheat] as @s run scoreboard players operation @s remagnification *= ten remagnification
# 虚荣者
execute at @s[tag=hero_cheat] as @s run scoreboard players operation @s remagnification *= double remagnification
# 给部分的限制
# 煤炭 -> 当等级大于或等于 2 级或者累计增加时间达到 40mins（2400）或者煤炭使用量大于 150 时，煤炭不可用
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={level=2..}] as @s run tag @s add cn_coal
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={hanaddtime=2401..}] as @s run tag @s add cn_coal
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=151..}] as @s run tag @s add cn_coal
# 铜锭 -> 当等级大于或等于 3 级或者累计增加时间达到 60mins（3600）铜锭使用量大于 224 时，铜锭不可用 -> 防止变成炼铜模拟器
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={level=3..}] as @s run tag @s add cn_copper
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={hanaddtime=3601..}] as @s run tag @s add cn_copper
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=225..}] as @s run tag @s add cn_copper
# 粗铜 -> 当等级大于或等于 4 级或者累计增加时间达到 90mins（5400）或者粗铜使用量大于 320 时，粗铜不可用 -> 防止变成炼铜模拟器
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={level=4..}] as @s run tag @s add cn_raw_copper
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={hanaddtime=5401..}] as @s run tag @s add cn_raw_copper
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=321..}] as @s run tag @s add cn_raw_copper
# 判断某个用户是否可以消耗某种矿物
# 煤炭
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = coal timeconfig
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = coal timeconfig
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,scores={coal=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 铁锭
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = iron timeconfig
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = iron timeconfig
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,scores={iron=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,scores={iron=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,scores={iron=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,scores={iron=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,scores={iron=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 铜锭
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = copper timeconfig
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = copper timeconfig
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,scores={copper=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 金锭
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = gold timeconfig
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = gold timeconfig
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,scores={gold=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,scores={gold=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,scores={gold=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,scores={gold=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,scores={gold=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 钻石
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = diamond timeconfig
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = diamond timeconfig
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,scores={diamond=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,scores={diamond=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,scores={diamond=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,scores={diamond=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,scores={diamond=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 下界合金
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = netherite timeconfig
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = netherite timeconfig
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,scores={netherite=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,scores={netherite=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,scores={netherite=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,scores={netherite=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,scores={netherite=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 粗铜
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = raw_copper timeconfig
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = raw_copper timeconfig
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,scores={raw_copper=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 粗铁
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = raw_iron timeconfig
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = raw_iron timeconfig
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,scores={raw_iron=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,scores={raw_iron=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,scores={raw_iron=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,scores={raw_iron=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,scores={raw_iron=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 粗金
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = raw_gold timeconfig
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = raw_gold timeconfig
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,scores={raw_gold=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,scores={raw_gold=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,scores={raw_gold=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,scores={raw_gold=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,scores={raw_gold=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 铁粒
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = iron_nugget timeconfig
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = iron_nugget timeconfig
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,scores={iron_nugget=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,scores={iron_nugget=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,scores={iron_nugget=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,scores={iron_nugget=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,scores={iron_nugget=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 金粒
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = gold_nugget timeconfig
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = gold_nugget timeconfig
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,scores={gold_nugget=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,scores={gold_nugget=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,scores={gold_nugget=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,scores={gold_nugget=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,scores={gold_nugget=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 绿宝石
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime = @s time_seconds
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd = emerald timeconfig
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd2 = emerald timeconfig
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd *= @s magnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,scores={emerald=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,scores={emerald=64..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,scores={emerald=32..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,scores={emerald=16..127,magnification=1}] as @s run scoreboard players operation @s timewilladd2 /= double remagnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,scores={emerald=0..127,magnification=1}] as @s run scoreboard players operation @s timewilladd += @s timewilladd2
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s timewilladd /= @s remagnification
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s canaddtime += @s timewilladd
# 检测是否可以添加
execute at @s[tag=!notime,tag=!hero,scores={level=1,canaddtime=1801..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=2,canaddtime=2101..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=3,canaddtime=2401..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=4,canaddtime=2701..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=5,canaddtime=3001..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=6,canaddtime=3301..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=!hero,scores={level=7,canaddtime=3601..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=1,canaddtime=3601..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=2,canaddtime=4201..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=3,canaddtime=4801..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=4,canaddtime=5401..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=5,canaddtime=6001..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=6,canaddtime=6601..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,tag=hero,scores={level=7,canaddtime=7201..},rx=-85] as @s run tag @s add cn_add
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_coal
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_iron
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_copper
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_gold
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_diamond
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_netherite
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_raw_copper
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_raw_iron
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_raw_gold
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_iron_nugget
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_gold_nugget
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,tag=cn_add] as @s run tag @s add cn_emerald
# 可以的设置
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run tag @s add canadd
# 如果可以添加 -> 如果是 0 则改为 1，防止出现添加的时间是 0 秒的问题
execute at @s[tag=!notime,rx=-85,tag=!cn_add,tag=canadd,scores={timewilladd=0}] as @s run scoreboard players set @s timewilladd 1
# 把已经添加的时间记录一下，方便后续算账
execute at @s[tag=!notime,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
execute at @s[tag=!notime,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,tag=!cn_add] as @s run scoreboard players operation @s hasaddtime += @s timewilladd
# 消耗并且提示
# 煤炭
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§0煤炭 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s coal 1
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run clear @s coal 0 1
execute at @s[tag=!notime,tag=cn_coal,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_coal,tag=cn_add,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_coal,tag=!cn_add,hasitem={item=coal,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 铁锭
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§f铁锭 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s iron 1
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run clear @s iron_ingot 0 1
execute at @s[tag=!notime,tag=cn_iron,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_iron,tag=cn_add,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_iron,tag=!cn_add,hasitem={item=iron_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 铜锭
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§2铜锭 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s copper 1
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run clear @s copper_ingot 0 1
execute at @s[tag=!notime,tag=cn_copper,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_copper,tag=cn_add,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_copper,tag=!cn_add,hasitem={item=copper_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 金锭
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§e金锭 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s gold 1
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run clear @s gold_ingot 0 1
execute at @s[tag=!notime,tag=cn_gold,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_gold,tag=cn_add,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_gold,tag=!cn_add,hasitem={item=gold_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 钻石
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 颗 §l§b钻石 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s diamond 1
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run clear @s diamond 0 1
execute at @s[tag=!notime,tag=cn_diamond,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_diamond,tag=cn_add,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_diamond,tag=!cn_add,hasitem={item=diamond,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 下界合金
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§4下界合金 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s netherite 1
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run clear @s netherite_ingot 0 1
execute at @s[tag=!notime,tag=cn_netherite,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_netherite,tag=cn_add,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_netherite,tag=!cn_add,hasitem={item=netherite_ingot,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 粗铜
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§2粗铜 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s raw_copper 1
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run clear @s raw_copper 0 1
execute at @s[tag=!notime,tag=cn_raw_copper,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_raw_copper,tag=cn_add,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_raw_copper,tag=!cn_add,hasitem={item=raw_copper,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 粗铁
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§f粗铁 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s raw_iron 1
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run clear @s raw_iron 0 1
execute at @s[tag=!notime,tag=cn_raw_iron,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_raw_iron,tag=cn_add,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_raw_iron,tag=!cn_add,hasitem={item=raw_iron,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 粗金
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 块 §l§e粗金 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s raw_gold 1
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run clear @s raw_gold 0 1
execute at @s[tag=!notime,tag=cn_raw_gold,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_raw_gold,tag=cn_add,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_raw_gold,tag=!cn_add,hasitem={item=raw_gold,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 铁粒
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 粒 §l§f铁粒 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s iron_nugget 1
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run clear @s iron_nugget 0 1
execute at @s[tag=!notime,tag=cn_iron_nugget,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_iron_nugget,tag=cn_add,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_iron_nugget,tag=!cn_add,hasitem={item=iron_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 金粒
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 粒 §l§e金粒 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s gold_nugget 1
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run clear @s gold_nugget 0 1
execute at @s[tag=!notime,tag=cn_gold_nugget,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_gold_nugget,tag=cn_add,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_gold_nugget,tag=!cn_add,hasitem={item=gold_nugget,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 绿宝石
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players operation @s time_seconds += @s timewilladd
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您消耗了 1 颗 §l§a绿宝石 §r§f换取了 §l§6"},{"score":{"name":"@s","objective":"timewilladd"}},{"text":" 秒 §r§f的生存时间。"}]}
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run tag @s add noup
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s emerald 1
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run scoreboard players add @s timeaddcount 1
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85,tag=last5min,tag=!haslast5min] as @s run scoreboard players add @s last5mincon 1
execute at @s[tag=!notime,tag=!cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run clear @s emerald 0 1
execute at @s[tag=!notime,tag=cn_emerald,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s title {"rawtext":[{"text":"§l"}]}
execute at @s[tag=!notime,tag=cn_emerald,tag=cn_add,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您剩余可储存的时间过少。"}]}
execute at @s[tag=!notime,tag=cn_emerald,tag=!cn_add,hasitem={item=emerald,location=slot.weapon.mainhand},rx=-85] as @s run titleraw @s subtitle {"rawtext":[{"text":"§r§f您不可以使用这种矿物来获取时间。"}]}
# 提升等级
execute at @s[tag=!noup] as @s run function levelupper
